home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
monstershop.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2008-03-10
|
13KB
|
312 lines
function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
}
var §\x01§ = -2073 + "\x04\x05"();
while(true)
{
if(eval("\x01") == 392)
{
set("\x01",eval("\x01") - 96);
§§push(true);
}
else if(eval("\x01") == 298)
{
set("\x01",eval("\x01") + 226);
§§push(!function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
});
}
else if(eval("\x01") == 274)
{
set("\x01",eval("\x01") - 115);
}
else if(eval("\x01") == 530)
{
set("\x01",eval("\x01") - 371);
}
else if(eval("\x01") == 296)
{
set("\x01",eval("\x01") + 455);
if(function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
})
{
set("\x01",eval("\x01") - 221);
}
}
else if(eval("\x01") == 524)
{
set("\x01",eval("\x01") - 264);
if(function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
})
{
set("\x01",eval("\x01") + 243);
}
}
else
{
if(eval("\x01") == 751)
{
set("\x01",eval("\x01") - 221);
§§push(§§pop() > function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
});
break;
}
if(eval("\x01") == 555)
{
set("\x01",eval("\x01") - 257);
§§push(eval(function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
}));
}
else if(eval("\x01") == 159)
{
set("\x01",eval("\x01") + 68);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 260)
{
set("\x01",eval("\x01") + 243);
}
else
{
if(eval("\x01") == 503)
{
set("\x01",eval("\x01") + 12);
getURL("FSCommand:fullscreen",false);
getURL("FSCommand:trapallkeys",true);
getURL("FSCommand:showmenu",false);
getURL("FSCommand:allowscale",false);
_root.gameonz = 0;
_root.udahan = 0;
_root.keyz = 0;
_root.bgmplaying = true;
_root.sndexport = true;
if(_root.manualz != 1)
{
var keyListener = new Object();
keyListener.onKeyUp = function()
{
if(Key.getCode() == 32)
{
_root.keyz = 0;
}
};
keyListener.onKeyDown = function()
{
if(Key.getCode() == 32)
{
if(_root.pauss != 1 and _root.udahan != 1 and _root.keyz != 1)
{
_root.keyz = 1;
if(_root.stunner != 1)
{
if(_root.deps._currentframe == 2 and _root.movl.dir == 2 and _root.nowcash != 0)
{
_root.skor += _root.nowcash;
_root.nowcash = 0;
_root.nohand();
_root.sounder(_root.efek3,"gps");
_root.deps.desk.play();
}
else if(_root.hitbox != 0 and _root.handy != 1 and _root.skor >= _root.harga[_root.hitbox])
{
_root.sounder(_root.efe,"goods");
_root.handy = 1;
_root.hand.attachMovie("brg1","brg",2);
_root.hand.brg.gotoAndStop(_root.hitbox);
_root.skor -= _root.harga[_root.hitbox];
_root.nowhand = _root.hitbox;
_root["k" + _root.nowhand].play();
}
else if(_root.hitbox != 0 and (_root.handy == 1 or _root.skor < _root.harga[_root.hitbox]))
{
_root.sounder(_root.efe,"wrg");
_root.hint.hinttext.gotoAndStop(1);
_root.hint.play();
}
else if(_root.nowserv != 0 and _root.movl.dir == 2 and _root["m" + _root.nowserv].asking != 1 and _root.meja[_root.nowserv] != 0 and _root["m" + _root.nowserv].dead != 1)
{
_root.sounder(_root.efe,"buba");
ip = _root.nowserv;
_root["m" + ip].asking = 1;
_root["m" + ip].pp.attachMovie("bub","bub",2);
_root["m" + ip].pp.bub._y -= 75;
if(_root["m" + ip].pesanan1 == 0 or _root["m" + ip].pesanan2 == 0)
{
_root["m" + ip].tipe = 1;
_root["m" + ip].pp.bub.attachMovie("brg1","brg",2);
_root["m" + ip].pp.bub.brg.gotoAndStop(_root["m" + ip].pesanan1);
}
else
{
_root["m" + ip].tipe = 2;
_root["m" + ip].pp.bub.attachMovie("brg" + _root["m" + ip].pesanan1 + "_" + _root["m" + ip].pesanan2,"brg",2);
}
}
else if(_root.nowserv != 0 and _root.movl.dir == 2 and _root["m" + _root.nowserv].asking != 0 and _root.meja[_root.nowserv] != 0 and _root["m" + _root.nowserv].dead != 1)
{
ip = _root.nowserv;
if(_root["m" + ip].tipe == 1)
{
if(_root["m" + ip].pesanan1 == _root.nowhand)
{
ap4 = _root.kos["meters" + ip].hp * _root.bnsx[_root.kos["meters" + ip].codec];
_root.nowcash = _root.untung[_root["m" + ip].pesanan1] + ap4;
_root.getmoney();
_root.remorang(ip);
}
else if(_root.handy != 0 and _root.nowcash == 0)
{
_root.salahan(ip);
}
}
else if(_root["m" + ip].pesanan3 == _root.nowhand)
{
ap4 = _root.kos["meters" + ip].hp * _root.bnsx[_root.kos["meters" + ip].codec];
bn = 0;
switch(_root["m" + ip].pesanan1)
{
case 2:
bn = 5;
break;
case 4:
bn = 20;
break;
case 6:
bn = 15;
}
ap = _root.untung[_root["m" + ip].pesanan1] - _root.harga[_root["m" + ip].pesanan1];
ap2 = _root.untung[_root["m" + ip].pesanan2] - _root.harga[_root["m" + ip].pesanan2];
ap3 = (ap + ap2) * 4 + bn + ap4;
_root.handcom = 0;
_root.combin = 0;
_root.nowcash = ap3;
_root.getmoney();
_root.remorang(ip);
}
else if(_root.handy != 0 and _root.nowcash == 0)
{
_root.salahan(ip);
}
}
else if(_root.ove._currentframe == 2 and _root.handy == 1 and _root.movl.dir == 2 and _root.jmlcom != 2 and _root.produce != 1 and _root.combin != 1)
{
_root.sounder(_root.efek3,"oven");
_root.jmlcom = _root.jmlcom + 1;
_root["com" + _root.jmlcom] = _root.nowhand;
_root["oven" + _root.jmlcom].attachMovie("brg1","brg",2);
_root["oven" + _root.jmlcom].brg.gotoAndStop(_root.nowhand);
if(_root.jmlcom == 1)
{
_root.ove.ovein.item1.gotoAndStop(_root.nowhand + 1);
}
if(_root.jmlcom == 2)
{
_root.ove.ind.gotoAndPlay("ready");
_root.ove.ovein.item2.gotoAndStop(_root.nowhand + 1);
_root.hint.hinttext.gotoAndStop(3);
_root.hint.play();
}
_root.nohand();
}
else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.jmlcom == 2 and _root.combin != 1 and _root.produce != 1)
{
_root.oven1._visible = 0;
_root.oven2._visible = 0;
_root.remm._visible = 0;
_root.jmlcom = 0;
_root.produce = 1;
_root.ove.mt.go = 1;
_root.ove.ovein.gotoAndStop("on");
_root.ove.ind.gotoAndStop("off");
}
else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.handy != 1 and _root.combin == 1 and _root.produce != 1)
{
_root.oven1.brg.removeMovieClip();
_root.sounder(_root.efe,"goods");
_root.nowhand = _root.comboitem;
_root.handy = 1;
_root.handcom = 1;
_root.hand.attachMovie("brg" + _root.com1 + "_" + _root.com2,"brg",2);
}
else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.handy == 1 and _root.combin == 1 and _root.produce != 1)
{
_root.sounder(_root.efe,"wrg");
_root.hint.hinttext.gotoAndStop(2);
_root.hint.play();
}
}
}
}
};
Key.addListener(keyListener);
_root.manualz = 1;
}
_root.bgm = new Sound();
_root.efe = new Sound();
_root.efek2 = new Sound();
_root.efek3 = new Sound();
_root.efek4 = new Sound();
_root.efek5 = new Sound();
_root.efek6 = new Sound();
_root.efek7 = new Sound();
_root.efek8 = new Sound();
_root.bgm.setVolume(80);
_root.bgm.onSoundComplete = function()
{
_root.bgm.start();
};
_root.pauss = 0;
_root.harga = [0,10,10,25,15,35,20,30,25];
_root.untung = [0,20,20,60,30,80,40,70,50];
_root.angryx = [0,24,20,16,14,12,10];
_root.price = [0,80,120,280,380,0,320,450,0,60,320];
_root.bnsx = [0,1,2,3,4,3,5];
_root.rgoal = [0,300,400,480,550,700,850,1000,1750,2500,3500];
_root.timemnt = [0,1,1,2,2,2,3,4,3,4,5];
_root.maxcustomers = [0,2,2,3,3,4,3,5,4,5,5];
break;
}
if(eval("\x01") == 204)
{
set("\x01",eval("\x01") + 351);
§§push("\x0f");
}
else
{
if(eval("\x01") != 227)
{
if(eval("\x01") == 515)
{
set("\x01",eval("\x01") - 515);
break;
}
break;
}
set("\x01",eval("\x01") - 23);
var §§pop() = function §\x04\x05§()
{
set("\x03",2026 % 511 * 5);
return eval("\x03");
};
}
}
}
}